package com.etc.Day7;

/**
 * @Author kalista
 * @Description
 * @Date 2020/10/28  14:27
 **/
public class Cat extends Animal{

    @Override
    void eat() {
        System.out.println("猫吃");
    }

    @Override
    void sleep() {
        System.out.println("睡觉");
    }



    public static void main(String[] args) {
        Animal animal = new Animal() {
            @Override
            void eat() {

            }

            @Override
            void sleep() {

            }
        };

        animal.eat();
    }
}
